﻿using System;
using System.Data;
using System.Web;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using AnyOffice.Components;
using AnyOffice.DAL;
namespace AnyOffice.general.system.workflow.flow_form
{    
    public partial class form_view : ModulePage
    {       

        protected void Page_Load(object sender, EventArgs e)
        {
            if (!this.Page.IsPostBack)
            {
                int num = (Request.QueryString["form_id"] == null) ? 0 : int.Parse(Request.QueryString["form_id"].ToString());
                string str = "";
                DataTable table = new FlowFormTypeDao().SelectByFormId(base.Conn, num);
                if (table.Rows.Count > 0)
                {
                    this.ViewState["FormName"] = table.Rows[0]["FormName"].ToString();
                    str = (table.Rows[0]["FormModel"] != DBNull.Value) ? table.Rows[0]["FormModel"].ToString() : "";
                }
                str = str.Replace(@"\r\n", "").Replace("\r\n", "");
                this.litFormModel.Text = str;
            }
        }
     
    }
}

